public class Student 
{
  String name;    // 学生姓名
  int rank;       // 考试排名(总排名)
  double grade;   // 考试分数(总分)

  public Student(String name, int rank, double grade) 
  {
    this.name = name;
    this.rank = rank;
    this.grade = grade;
  }

  public String getName() 
  {
    return(this.name);
  }
  public void setName(String name) 
  {
    this.name = name;
  }

  public int getRank() 
  {
    return(this.rank);
  }
  public void setRank(int rank) 
  {
    this.rank = rank;
  }

  public double getGrade() 
  {
    return(this.grade);
  }
  public void setGrade(double grade) 
  {
    this.grade = grade;
  }
}
